export interface PatientInfo {
    id: number,
    title: string,
    price?: number,
    inventory: number
}

export interface ResState {
    user?: User;
    error: boolean;
}
export interface User {
    account: string;
    name: string;
    email?: string;
    phone?: string;
}

export interface SurgicalApply {
    code: string,
    status: number,
    patientId: number,
    patientUsername: string,
    patientPhone: string,
    patientMedicalCardNo: string,
    operations: string,
    outpatientNo: string,
    hospitalizedNo: string,
    wardId: number,
    wardName: string,
    hospitalizedBedNo: string,
    isEmergency: true,
    isUrgent: true,
    isInfect: true,
    expenseCategoryCode: string,
    expenseCategoryName: string,
    applyDateTime: number,
    diagnosisDiseases: string,
    diagnosisBeforeOperation: string,
    note: string,
    operatingPlanBeginDateTime: number,
    operatingPlanEndDateTime: number,
    operatingActualBeginDateTime: number,
    operatingActualEndDateTime: number,
    operatingRoomId: number,
    operatingRoomName: string,
    operatingPositionCode: string,
    operatingPositionName: string,
    operatingDoctorId: number,
    operatingDoctorUsername: string,
    operatingFirstAssistantId: number,
    operatingFirstAssistantUsername: string,
    operatingSecondAssistantId: number,
    operatingSecondAssistantUsername: string,
    operatingThirdAssistantId: number,
    operatingThirdAssistantUsername: string,
    operatingForthAssistantId: number,
    operatingForthAssistantUsername: string,
    operatingCircuitNurseId: number,
    operatingCircuitNurseUsername: string,
    operatingApparatusNurseId: number,
    operatingApparatusNurseUsername: string,
    anesthesiaMethodCode: string,
    anesthesiaMethodName: string,
    anesthesiaDoctorId: number,
    anesthesiaDoctorUsername: string,
    anesthesiaAssistantId: number,
    anesthesiaAssistantUsername: string,
    id: number
}

export interface patientSurgicalApply {
    code: string,
    status: number,
    patientId: number,
    patientUsername: string,
    patientPhone: string,
    patientMedicalCardNo: string,
    operations: string,
    outpatientNo: string,
    hospitalizedNo: string,
    wardId: number,
    wardName: string,
    hospitalizedBedNo: string,
    isEmergency: true,
    isUrgent: true,
    isInfect: true,
    expenseCategoryCode: string,
    expenseCategoryName: string,
    applyDateTime: number,
    diagnosisDiseases: string,
    diagnosisBeforeOperation: string,
    note: string,
    operatingPlanBeginDateTime: number,
    operatingPlanEndDateTime: number,
    operatingActualBeginDateTime: number,
    operatingActualEndDateTime: number,
    operatingRoomId: number,
    operatingRoomName: string,
    operatingPositionCode: string,
    operatingPositionName: string,
    operatingDoctorId: number,
    operatingDoctorUsername: string,
    operatingFirstAssistantId: number,
    operatingFirstAssistantUsername: string,
    operatingSecondAssistantId: number,
    operatingSecondAssistantUsername: string,
    operatingThirdAssistantId: number,
    operatingThirdAssistantUsername: string,
    operatingForthAssistantId: number,
    operatingForthAssistantUsername: string,
    operatingCircuitNurseId: number,
    operatingCircuitNurseUsername: string,
    operatingApparatusNurseId: number,
    operatingApparatusNurseUsername: string,
    anesthesiaMethodCode: string,
    anesthesiaMethodName: string,
    anesthesiaDoctorId: number,
    anesthesiaDoctorUsername: string,
    anesthesiaAssistantId: number,
    anesthesiaAssistantUsername: string,
    id: number
}

export interface ClerkInfoApply{
    isActive: true,
    workerNo: string,
    userName: string,
    gender: number,
    birthDate: string,
    skillType: number,
    skillLevel: number,
    organizationId: number,
    id: number
}

export interface PatientInfoApply{
    username: string,
    gender: number,
    birthDate: string,
    birthAddress: string,
    nation: string,
    phone: string,
    medicalCardNo: string,
    certificateType: string,
    certificateNo: string,
    contactAddress: string,
    emergencyContactUsername: string,
    emergencyContactPhone: string,
    emergencyContactRelationship: string,
    drugAllergyHistory: string,
    operatingHistory: string,
    id: number
}